<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>密码策略信息列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/systemStatic/style/admin.css">
    <link rel="stylesheet" href="${ctx}/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/css/public.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
</head>
<body>

<div id="container" style="height: 88%"></div>

<div style="text-align: center;">
    <button type="reset" id="closeWindow" class="layui-btn btn-n layui-btn-danger btn-save">关闭</button>
</div>

<script src="${ctx}/public/component.js" type="text/javascript"></script>
<script src="${ctx}/layui/layui.js"></script>
<script type="text/javascript">

    layui.config({
        base: serverPath.systemPath + staticPath.systemPath //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use(['index','table', 'setter', 'form', 'common','totalFilter','commons','jquery','echarts'], function () {
        var $ = layui.jquery;
        var echarts = layui.echarts;
        var dom = document.getElementById("container");
        var myChart = echarts.init(dom);
        var app = {};
        var ownerModel = "${ownerModel}";
        var countLog = "${countLog}";
        if(ownerModel && countLog){
            ownerModel = eval("(${ownerModel})");
            countLog = eval("(${countLog})");
        }

        option = null;
        option = {
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            xAxis: {
                type: 'category',
                data: ownerModel
            },
            yAxis: {
                type: 'value'
            },
            series: [{
                data: countLog,
                type: 'bar'
            }]
        };
        ;
        if (option && typeof option === "object") {
            myChart.setOption(option, true);
        }

        //关闭当前页面
        $("#closeWindow").click(function () {
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        })

    })
</script>
</body>
</html>